<?php

require dirname(__FILE__). "/../classes/ContactCar.class.php";
require dirname(__FILE__). "/../classes/CarDAO.class.php";
require dirname(__FILE__). "/../classes/ConnectionFactory.class.php";

$car=new ContactCar();

if(isset($_GET['id']) && (!empty($_GET['id']))) {
$con=new ConnectionFactory();
$co=$con->getConnection();
$dao=new CarDAO($co);
$car=$dao->getById($_GET['id']);

}

?>
